<?php
	//echo '<span>nota: '.$rate.'</span>';
	
	$filepathExtensionImages = dirname(__FILE__) . '/../assets/images';
	// assetManager will publish the folder and return the url to that folder
	$baseUrl = Yii::app()->assetManager->publish( Yii::getPathOfAlias('ext.rating.assets') ); 
	//Yii::app()->assetManager->publish( $filepathExtensionImages );
	// use one of the images
	$urlImage1 = "$baseUrl/images/rate_sprite.png";
	//echo '<div style="background:url('.$urlImage1.');width:16px;height:16px;border:0px;background-position:-32px 0px;float:right;"></div>'; //'.$assetsDir.'/
	echo '<div class="rating r'.$rate.'" style="background:url('.$urlImage1.');"></div>'; //'.$assetsDir.'/
?>